/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package suncertify.ui;

import java.awt.event.WindowEvent;
import java.awt.event.WindowStateListener;
 

/**
 *
 * @author jshah
 */
public class ClientRmiDisplay implements Runnable{

    public void run(){
        ClientRmiConfigController rmiConfigController;
        rmiConfigController = new ClientRmiConfigController();
        ClientRmiConfig rmiConfig = new ClientRmiConfig(rmiConfigController);
        rmiConfigController.setInstance(rmiConfig);


        rmiConfig.getClientConfigFrame().addWindowStateListener(new WindowStateListener(){

            public void windowClosed(WindowEvent e){
                ClientRmiConfigController.showScreen = false;
                System.out.println("WINDOW CLOSING");
            }

            public void windowStateChanged(WindowEvent e) {

            }

        });
        while(ClientRmiConfigController.showScreen){

        }

        rmiConfig.getClientConfigFrame().setVisible(false);
    }
}
